{include file="inc/header.html"} 
<?php
$this->_var['vstorejs'][] = $this->_var['TMPL_REAL']."/js/store.js";
$this->_var['vstorejs'][] = $this->_var['TMPL_REAL']."/js/baidumap.js";
$this->_var['vstorejs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.core.js";
$this->_var['vstorejs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.widget.js";
$this->_var['vstorejs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.datepicker.js";

$this->_var['vcpstorejs'][] = $this->_var['TMPL_REAL']."/js/store.js";
$this->_var['vcpstorejs'][] = $this->_var['TMPL_REAL']."/js/baidumap.js";
$this->_var['vcpstorejs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.core.js";
$this->_var['vcpstorejs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.widget.js";
$this->_var['vcpstorejs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.datepicker.js";

$this->_var['vreviewcss'][] = $this->_var['TMPL_REAL']."/css/review.css";
$this->_var['vreviewcss'][] = $this->_var['TMPL_REAL']."/css/review_form.css";
$this->_var['vreviewcss'][] = $this->_var['TMPL_REAL']."/css/store.css";
$this->_var['vreviewcss'][] = $this->_var['TMPL_REAL']."/css/datepicker.css";
?>
<script src="http://api.map.baidu.com/api?v=1.2" type="text/javascript"></script>
<script type="text/javascript" src="{function name="parse_script" v="$vstorejs" c="$vcpstorejs"}"></script>
<link rel="stylesheet" type="text/css" href="{function name="parse_css" v="$vreviewcss"}" />
<style>
	#ckepop .jiathis_txt{ font-weight:normal;font-family:"宋体"}
</style>
<script type="text/javascript">
	var is_order_show = false;
	var json_store_data = {$json_location_data};
	var store_id = "{$store_info.id}";
</script>
<div class="store_detail_box">
	  <div class="wrap">
				<div class="store_info_logo f_l">
					<img src="{$store_info.preview}" alt="{$store_info.name}" class="clearfix" />
					<div class="clearfix image_count">
						<div class="f_l">
						<span class="char_corr">◆</span>&nbsp;&nbsp;<a href="{if $store_info.image_count >0}{url x="store" r="photos"p="id=$store_info.id"}{else}javascript:;{/if}" class="blue">查看全部<b class="red">{$store_info.image_count}</b>张图片</a>
						</div>
					</div>
				</div>
				<div class="store_info_info f_r">
					 <b class="store_title_row">
					 	{$store_info.name}
						{if $store_info.is_verify eq 1}&nbsp;&nbsp;<font class="verify_store" title="认证商家"></font>{/if}
					</b> 				
					 <div class="blank"></div>
				 	<div class="store_info_item clearfix">
				 		{if $store_info.brief}
						<div class="brief_box">
						<div class="brief clearfix" id="brief_small"><?php echo msubstr(strip_tags($this->_var['store_info']['brief']),0,90); ?>&nbsp;&nbsp;<a href="javascript:void(0);" class="act">展开简介>></a></div>
						<div class="brief brief_big clearfix" id="brief_big" style="display:none">{$store_info.brief}&nbsp;&nbsp;<a href="javascript:void(0);" class="act"><< 收起简介</a></div>
						</div>
						<div class="blank"></div>
						{/if}
				 		<span class="starsBarBig f_l">
				 			<span class="s s<?php echo intval($this->_var['store_info']['avg_point']); ?>"></span>
				 		</span>
						<span class="sc_ori f_l"><?php echo round($this->_var['store_info']['avg_point'],1); ?></span>
				 		<div class="f_l">
				 		&nbsp;&nbsp;
						人均：<span class="ori_font"><?php echo $GLOBALS['lang']['AVG_PRICE_'.$this->_var['store_info']['avg_price']]; ?> </span>
						&nbsp;&nbsp;&nbsp;&nbsp;<a href="#store_dp" class="blue">{$store_info.dp_count}封点评</a>
						{if $store_info.is_verify eq 0}
						&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:void(0);" onclick="join_store('{url x="biz" r="join#step2" p="location_id=$store_info.id"}');" class="blue">认领该店</a>
						{/if}
						</div>
						{if $conf_score gt 0}
						<div class="f_l" style="margin-left:20px;">
							<span class="ord_song" title="会员&nbsp;预订就餐成功，送消费金额的{$conf_score}倍积分 "><span class="song_con">{$conf_score}倍积分</span></span>
						</div>
						{/if}
					</div>
					{if $store_info.one_line_order eq 1}
					<div class="clearfix" style="display:none">
						<form id="store-view-form-date" name="store-view-form-date" action="{url x="store" r="order" p="id=$store_info.id"}" method="post">
						<div class="clearfix" style="line-height:normal;">K歌时间</div>
						<div class="blank1"></div>
						<input type="text" class="f-input f-input-d" readonly="readonly" size="21" id="orderDate" name="orderDate" placeholder="----年--月--日" value="{insert name="load_default_date"}" />
						<input type="text" class="f-input f-input-d" readonly="readonly" size="5"  id="orderHour" name="orderHour" placeholder="--时" value="{insert name="load_default_hour}" />
						<input type="text" class="f-input f-input-d" readonly="readonly" size="5" id="orderMini" name="orderMini" placeholder="--分" value="{insert name="load_default_mini}" />
						</form>
					</div>
					{/if}
					{if $store_info.online_info}
					<div class="online_info">
						<p style="line-height:24px;_line-height:20px;">网站预订即可享受：</p>
						<div>
							<i class="online_b"></i>
							<p class="online_con"><?php echo strip_tags($this->_var['store_info']['online_info'],"<b>")?></p>
							<i class="online_b"></i>
						</div>
					</div>
					{/if}
					<div class="blank"></div>
					<div class="clearfix">
						<span class="grebtn {if $store_info.one_line_order eq 0}grebtn_dis{/if} f_l" style=" padding-right:10px;" {if $store_info.one_line_order eq 0}title="对不起，该餐厅不支持第三方预订{if $store_info.tel}，请拨打餐厅电话{$store_info.tel}预订{/if}"{/if}>
							{if $store_info.one_line_order eq 0}
							<i class="gray_line"></i>
							<strong class="grabtn_in">
								<span class="grabtn_bg grabtn_bg_l">立即预订</span>
							</strong>
							<i class="gray_line"></i>
							{else}
							<i class="green_line"></i>
							<strong class="grebtn_in">
								<a href="#" id="submit-store-view-form-date" class="grebtn_bg">立即预订</a>
							</strong>
							<i class="green_line"></i>
							{/if}
						</span>
						<div class="f_l" style=" padding-top:4px;padding-right:10px;"><a href="#review_form" class="blue">发表点评</a></div>
						
						<div class="f_l" style="padding-top:6px; padding-right:10px;">
							<a href="javascript:;" onclick="store_send_form({$store_info.id});" id="store_send_sms" class="f_l store_sms blue" title="{function name="app_conf" value="SHOP_TITLE"}把地址、电话用短信免费发到你的手机，再也不怕找不到店哦，保证安全，请放心使用">免费发送到手机</a>
						</div>
						<div class="f_l" style="padding-top:6px;">
							<a href="javascript:void(0);" onclick="sign_location({$store_info.id});" class="blue store_sms" style="background:none;padding-left:0px;">签到</a>
						</div>
						
						
					</div>
				</div>
				<div class="blank1"></div>
	   </div>		
</div>
<div class="wrap clearfix">
		<div class="goods_detail_box f_l" style="margin:0px;width:720px;">
				<ul class="detail_nav ext_nav">
					{insert name="load_store_navs"}
				</ul>
				<div class="wb wbt clearfix" style="padding:0px 9px 10px 9px; border:1px solid #dbdbdb;border-top:none;">
					<div class="blank"></div>
					<ul class="detail_cnt">
						<li id="extra_info"></li>
					</ul>
					<div class="blank"></div>
				</div>
				<div class="blank"></div>
				<ul class="detail_nav" id="ul-store-detail-nav">
					<li rel="ul-store-info" class="act">商户详情</li>
					{if $order_count gt 0}
					<li rel="ul-store-order">订单记录({$order_count})</li>
					{/if}
					<li rel="ul-store-review" >KTV点评</li>
				</ul>
				<div class="wb wbt">
					<ul id="ul-store-info" class="store-ul">
						<li class="act clearfix" id="store_info" style="padding:10px;">
							<div class="store_b_info_l">
								<div class="jsForReport clearfix">
									<div class="box_r f_l">
										<h5>基本信息</h5>
										{if $store_info.open_time}
										<div class="tag_info_item">
									 	营业时间：{$store_info.open_time}
										</div>
										{/if}
										<!--{if $store_info.tags}
										<div class="tag_info_item">
										店铺标签：{foreach from="$store_info.tags_list" item="tag"}<a href="{url x="store" r="index" p="tag=$tag.code"}"><span class="tel_blue">{$tag.name}</span></a>&nbsp;{/foreach}
										</div>
										{/if}
										{foreach from="$store_info.tag_group" item=tag_group}
											{if $tag_group.tags}
												{if $tag_group.allow_vote}
													<div class="tag_info_item">
													{$tag_group.name}：
													{foreach from="$tag_group.tags" item=tag_item}
													<span class="tag_vote" onclick="vote_tag('{$tag_item.name}',{$tag_group.id},{$store_info.id},this);">{$tag_item.name}{if $tag_item.total_count gt 0}({$tag_item.total_count}){/if}</span>&nbsp;&nbsp;
													{/foreach}
													</div>
												{else}
													<div class="tag_info_item">
													{$tag_group.name}：
													{foreach from="$tag_group.tags" item=tag_item}
													<a href="{$tag_item.url}" target="_blank"><span class="tel_blue">{$tag_item.name}{if $tag_item.total_count gt 0}({$tag_item.total_count}){/if}</span></a>&nbsp;&nbsp;
													{/foreach}
													</div>
												{/if}
											{/if}
										{/foreach}-->
									</div>
									<div class="box_r f_r">
										{if $store_info.stop || $menu_count gt 0}
										<h5>设施与服务</h5>
										<div class="tag_info_item">
										{if $store_info.stop}
									 	有停车位
										{/if}
										</div>
										{/if}
										<div class="blank"></div>
										{if $store_info.tel || $store_info.contact}
										<h5>免费下单电话</h5>
										<div class="tag_info_item">
										{if $store_info.tel}
									 	{$store_info.tel}
										{/if}
										{if $store_info.contact}
									 	联系人：<span class="tel_blue">{$store_info.contact}</span>
										{/if}
										</div>
										{/if}
									</div>
							</div>
							<div class="blank"></div>
							<div class="jsForReport_line"></div>
							<div class="blank"></div>
							<div class="jsForReport">
								<h5>地理交通</h5>
								{if $store_info.address}
								<div class="tag_info_item store_address clearfix">
							 	地址：{$store_info.address}&nbsp;&nbsp;|&nbsp;&nbsp;<a href="javascript:void(0);" onclick="zoommap(json_store_data);">地图</a>
								</div>
								{/if}
								{if $store_info.route}
								<div class="tag_info_item store_bus clearfix">
									<div class="f_l tit"><span class="icons i012"></span>交通：</div>
									<div class="f_l box">{$store_info.route}</div>
								</div>
								{/if}
								{if $store_info.stop}
								<div class="tag_info_item store_stop clearfix">
									<div class="f_l tit"><span class="icons i013"></span>停车：</div>
									<div class="f_l box">{$store_info.stop}</div>
								</div>
								{/if}
							</div>
							{if $store_info.description}
							<div class="blank"></div>
							<div class="jsForReport_line"></div>
							<div class="blank"></div>
							<div class="description">
								<h3 class="mb5">详细描述</h3>
								<div class="des_cont">{$store_info.description}</div>
							</div>
							{/if}						
						</div>
						</li>
				
					</ul>
					{if $order_count gt 0}
					<ul id="ul-store-order" class="store-ul p10">
						{$order_html}
					</ul>
					{/if}
					<ul id="ul-store-review" class="store-ul p10">
						<div class="blank"></div>
						<div id="store_dp" name="store_dp">
							<script type="text/javascript">
								load_store_dp({$store_info.id},1,"","");
							</script>
						</div>
						<div class="blank"></div>
						<div id="review_form">
							{insert name="get_reivew_form" id="$store_info.id" deal_cate_id="$store_info.deal_cate_id"}
						</div>
					</ul>
				</div>
			</div>
		<div class="detail_left f_r">
			<div class="store-imp-box" id="FW-STORE-VIEW-IMP-BOX" dataid="{$store_info.id}"></div>
			<div class="blank"></div>
			{include file="inc/store/detail_store_similar.html"} 
			<div class="blank"></div>
			{include file="inc/store/detail_store_nearby.html"}
			<div class="blank"></div>
		</div>		
			
		
</div>
<div class="blank"></div>
<div class="fw-date-box abs" id="FW-DATE-BOX"></div>
<div id="choFloatBox" class="res_cho_fl_box vh" style="visibility: visible; ">
</div>
{include file="inc/footer.html"}